package com.example.flowabledemo.data.vo;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import lombok.Data;

/**
 * @author linke
 * @date 2020/11/27 19:33
 * @description
 */
@Data
public class ApplyLeaveVo {

  @NotBlank(message = "标题title不能为空")
  @Size(max = 225)
  private String title;

  @NotBlank(message = "类型type不能为空")
  private String type;

  @NotBlank(message = "开始时间startDate不能为空")
  private String startDate;

  @NotBlank(message = "结束时间endDate不能为空")
  private String endDate;

  @NotBlank(message = "描述description不能为空")
  @Size(max = 500,message = "描述description不能超过500字符")
  private String description;
}
